package com.zb.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zb.result.PageUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Author WEN
 * @Date 2024/1/26 0026
 **/
@Data
@ApiModel("工单结算状态列表搜索对象")
public class OrderSettlementListSearchVo extends PageUtil {
    @ApiModelProperty(value = "结算状态：0-待结算，1-已结算")
    private Integer status;

    @ApiModelProperty(value = "日期类型：1-报单日期，2-结算日期，3-完工日期")
    private Integer dateType;

    @ApiModelProperty(value = "1-时间区间，2-今天，3-本周，4-本月，5-过去三个月")
    private Integer dateValType;

    @ApiModelProperty(value = "报单/结算/完工开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderStartTime;

    @ApiModelProperty(value = "报单/结算/完工结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderEndTime;

    @ApiModelProperty(value = "工单单号")
    private String workNo;

    @ApiModelProperty(value = "工单商品关键词搜索：商品品牌/名称/型号")
    private String goodsKeyword;

    @ApiModelProperty(value = "客户关键词搜索：客户名称/客户手机/客户地址")
    private String userKeyword;

    @ApiModelProperty(value = "排序字段类型：1-完工时间，2-结算时间，3-取消时间", example = "2")
    private Integer orderByType;

    @ApiModelProperty(value = "排序类型：1-升序，2-降序", example = "2")
    private Integer orderBySort;
}
